package com.artqiyi.dollmachine.utils;

import android.content.Context;
import android.widget.ImageView;

import com.artqiyi.dollmachine.views.widget.BannerLayout;
import com.bumptech.glide.Glide;
import com.bumptech.glide.load.engine.DiskCacheStrategy;
import com.bumptech.glide.load.resource.bitmap.CenterCrop;

/**
 * Created by Administrator on 2016/12/21 0021.
 */

public class GlideImageLoader implements BannerLayout.ImageLoader {
    @Override
    public void displayImage(Context context, String path, ImageView imageView) {
        Glide.with(context).load(path).centerCrop().into(imageView);
//        Glide.with(context)
//                .load(path)
//                .transform(new CenterCrop(context), new GlideRoundImage(context))
//                .diskCacheStrategy(DiskCacheStrategy.ALL)
//                .crossFade()
//                .into(imageView);
    }
}
